﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace AdeToFood.Filters
{
	public class LogAttribute : ActionFilterAttribute
	{
		public override void OnActionExecuting( ActionExecutingContext filterContext )
		{
			base.OnActionExecuting( filterContext );
		}

		public override void OnActionExecuted( ActionExecutedContext filterContext )
		{
			// Nesse ponto temos no parâmetro a informação da Exception que ocorreu
			base.OnActionExecuted( filterContext );
		}

		public override void OnResultExecuting( ResultExecutingContext filterContext )
		{
			base.OnResultExecuting( filterContext );
		}

		public override void OnResultExecuted( ResultExecutedContext filterContext )
		{
			base.OnResultExecuted( filterContext );
		}
		
	}
}